﻿using Shop.Model.Entity.Goo;
using SqlSugar;

namespace Shop.Model.View.Goo;

public class GooParticularsVo
{
    /// <summary>
    /// 商品ID
    /// </summary>
    public long Id { get; set; }
    
    /// <summary>
    /// 商品名称
    /// </summary>
    public string Name { get; set; }
    
    /// <summary>
    /// 商品轮播
    /// </summary>
    public string Banner { get; set; }
    
    /// <summary>
    /// 商品详情
    /// </summary>
    public string Details { get; set; }
    
    /// <summary>
    /// 划线价
    /// </summary>
    public decimal LineationPrice { get; set; }
    
    /// <summary>
    /// 商品金额
    /// </summary>
    public decimal Money { get; set; }
    
    /// <summary>
    /// 下一级别购买价
    /// </summary>
    public decimal? BelowMoney { get; set; }
    
    /// <summary>
    /// 规格分组
    /// </summary>
    public string Spc { get; set; }
    
    /// <summary>
    /// 标签
    /// </summary>
    public string Tag { get; set; }
    
    /// <summary>
    /// 规格数据
    /// </summary>
    public List<GooSizeParticularsVo> Size { get; set; }
}

public class GooSizeParticularsVo
{
    /// <summary>
    /// 规格缩略图
    /// </summary>
    public string SImg { get; set; }
    /// <summary>
    /// 规格ID
    /// </summary>
    public long SId { get; set; }
    
    /// <summary>
    /// 规格名称
    /// </summary>
    public string SName { get; set; }
    
    /// <summary>
    /// 库存
    /// </summary>
    public int Stock { get; set; }
    
    /// <summary>
    /// 数量
    /// </summary>
    public int Count { get; set; }
    
    /// <summary>
    /// 规格金额
    /// </summary>
    public decimal SMoney { get; set; }
    
    /// <summary>
    /// 分享赚
    /// </summary>
    public decimal ShareSubsidy { get; set; }
    
    /// <summary>
    /// 是否默认规格
    /// </summary>
    public bool IsDefault { get; set; }
}